<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      Guile-3.0.2
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;13.&nbsp;Programming
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="git.html" title="Git-2.26.0">Prev</a>
          <p>
            Git-2.26.0
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="librep.html" title="Librep-0.92.7">Next</a>
          <p>
            Librep-0.92.7
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="prog.html" title=
          "Chapter&nbsp;13.&nbsp;Programming">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="guile" name="guile"></a>Guile-3.0.2
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to Guile
        </h2>
        <p>
          The <span class="application">Guile</span> package contains the GNU
          Project's extension language library. <span class=
          "application">Guile</span> also contains a stand alone <span class=
          "application">Scheme</span> interpreter.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://ftp.gnu.org/gnu/guile/guile-3.0.2.tar.xz">https://ftp.gnu.org/gnu/guile/guile-3.0.2.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download (FTP): <a class="ulink" href=
                "ftp://ftp.gnu.org/gnu/guile/guile-3.0.2.tar.xz">ftp://ftp.gnu.org/gnu/guile/guile-3.0.2.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 8941255461ad4566c3182143baf68126
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 12 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 206 MB (add 3 MB for tests)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 2.0 SBU (Using parallelism=4; add 0.4
                SBU for tests)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Guile Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="gc.html" title="GC-8.0.4">GC-8.0.4</a> and
          <a class="xref" href="libunistring.html" title=
          "libunistring-0.9.10">libunistring-0.9.10</a>
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../postlfs/emacs.html" title=
          "Emacs-26.3">Emacs-26.3</a> and <a class="xref" href="gdb.html"
          title="GDB-9.1">GDB-9.1</a> (run-time only dependencies).
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/guile">http://wiki.linuxfromscratch.org/blfs/wiki/guile</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of Guile
        </h2>
        <p>
          Install <span class="application">Guile</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr    \
            --disable-static \
            --docdir=/usr/share/doc/guile-3.0.2 &amp;&amp;
make      &amp;&amp;
make html &amp;&amp;

makeinfo --plaintext -o doc/r5rs/r5rs.txt doc/r5rs/r5rs.texi &amp;&amp;
makeinfo --plaintext -o doc/ref/guile.txt doc/ref/guile.texi</kbd>
</pre>
        <p>
          To test the results, issue: <span class=
          "command"><strong>./check-guile</strong></span>.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install      &amp;&amp;
make install-html &amp;&amp;

mkdir -p                       /usr/share/gdb/auto-load/usr/lib &amp;&amp;
mv /usr/lib/libguile-*-gdb.scm /usr/share/gdb/auto-load/usr/lib &amp;&amp;
mv /usr/share/doc/guile-3.0.2/{guile.html,ref} &amp;&amp;
mv /usr/share/doc/guile-3.0.2/r5rs{.html,}     &amp;&amp;

find examples -name "Makefile*" -delete         &amp;&amp;
cp -vR examples   /usr/share/doc/guile-3.0.2   &amp;&amp;

for DIRNAME in r5rs ref; do
  install -v -m644  doc/${DIRNAME}/*.txt \
                    /usr/share/doc/guile-3.0.2/${DIRNAME}
done &amp;&amp;
unset DIRNAME</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--disable-static</code></em>: This
          switch prevents installation of static versions of the libraries.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">guild, guile, guile-config, guile-snarf
              and guile-tools</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libguile-3.0.so and
              guile-readline.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/include/guile, /usr/lib/guile,
              /usr/share/doc/guile-3.0.2 and /usr/share/guile</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="guile-prog" name="guile-prog"></a><span class=
                    "term"><span class=
                    "command"><strong>guile</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a stand-alone Scheme interpreter for <span class=
                    "application">Guile</span>.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="guile-config" name="guile-config"></a><span class=
                    "term"><span class=
                    "command"><strong>guile-config</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a <span class="application">Guile</span> script which
                    provides the information necessary to link your programs
                    against the <span class="application">Guile</span>
                    library, in much the same way PkgConfig does.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="guile-snarf" name="guile-snarf"></a><span class=
                    "term"><span class=
                    "command"><strong>guile-snarf</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a script to parse declarations in your <span class=
                    "application">C</span> code for <span class=
                    "application">Scheme</span> visible <span class=
                    "application">C</span> functions.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="guild" name="guild"></a><span class=
                    "term"><span class=
                    "command"><strong>guild</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a wrapper program installed along with <span class=
                    "command"><strong>guile</strong></span>, which knows
                    where a particular module is installed and calls it,
                    passing its arguments to the program.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="guile-tools" name="guile-tools"></a><span class=
                    "term"><span class=
                    "command"><strong>guile-tools</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a symlink to <span class=
                    "command"><strong>guild</strong></span>.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-03-27 17:07:27 -0500
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="git.html" title="Git-2.26.0">Prev</a>
          <p>
            Git-2.26.0
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="librep.html" title="Librep-0.92.7">Next</a>
          <p>
            Librep-0.92.7
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="prog.html" title=
          "Chapter&nbsp;13.&nbsp;Programming">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
